package com.yihaodian.cluster;


public class ClusterChangedEvent {
	
	private String source;

	private final ClusterState previousState;

	private final ClusterState state;

	public ClusterChangedEvent(String source, ClusterState state,
			ClusterState previousState) {
		this.state = state;
		this.previousState = previousState;
	}
	
	public String getSource() {
		return source;
	}

	public ClusterState state() {
		return this.state;
	}

	public ClusterState previousState() {
		return this.previousState;
	}

}
